.class Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;
.super Ljava/lang/Thread;
.source "DownloadService.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "UpdateThread"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;


# direct methods
.method public constructor <init>(Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;)V
    .registers 3

    .prologue
    .line 171
    iput-object p1, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    .line 172
    const-string v0, "Download Service"

    invoke-direct {p0, v0}, Ljava/lang/Thread;-><init>(Ljava/lang/String;)V

    .line 173
    return-void
.end method

.method private scheduleAlarm(J)V
    .registers 10
    .param p1, "wakeUp"    # J

    .prologue
    const/4 v6, 0x0

    .line 275
    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    const-string v3, "alarm"

    invoke-virtual {v2, v3}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/AlarmManager;

    .line 276
    .local v0, "alarms":Landroid/app/AlarmManager;
    if-nez v0, :cond_15

    .line 277
    const-string v2, "DownloadManager"

    const-string v3, "couldn\'t get alarm manager"

    invoke-static {v2, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 292
    :goto_14
    return-void

    .line 285
    :cond_15
    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.DOWNLOAD_WAKEUP"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 286
    .local v1, "intent":Landroid/content/Intent;
    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    invoke-virtual {v2}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->getPackageName()Ljava/lang/String;

    move-result-object v2

    const-class v3, Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadReceiver;

    .line 287
    invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v3

    .line 286
    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 288
    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    iget-object v2, v2, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->mSystemFacade:Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;

    .line 289
    invoke-interface {v2}, Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;->currentTimeMillis()J

    move-result-wide v2

    add-long/2addr v2, p1

    iget-object v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    const/high16 v5, 0x40000000

    .line 290
    invoke-static {v4, v6, v1, v5}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v4

    .line 288
    invoke-virtual {v0, v6, v2, v3, v4}, Landroid/app/AlarmManager;->set(IJLandroid/app/PendingIntent;)V

    goto :goto_14
.end method


# virtual methods
.method public run()V
    .registers 26

    .prologue
    .line 176
    const-string v4, "UpdateThread start runing"

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/Object;

    invoke-static {v4, v5}, Lcom/zuimeia/sdk/download/utils/LogTimber;->d(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 177
    const/16 v4, 0xa

    invoke-static {v4}, Landroid/os/Process;->setThreadPriority(I)V

    .line 179
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    # invokes: Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->trimDatabase()V
    invoke-static {v4}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->access$100(Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;)V

    .line 180
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    # invokes: Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->removeSpuriousFiles()V
    invoke-static {v4}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->access$200(Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;)V

    .line 182
    const/16 v16, 0x0

    .line 185
    .local v16, "keepService":Z
    const-wide v22, 0x7fffffffffffffffL

    .line 187
    .local v22, "wakeUp":J
    :cond_22
    move-object/from16 v0, p0

    iget-object v5, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    monitor-enter v5

    .line 188
    :try_start_27
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    iget-object v4, v4, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->mUpdateThread:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;

    move-object/from16 v0, p0

    if-eq v4, v0, :cond_3c

    .line 189
    new-instance v4, Ljava/lang/IllegalStateException;

    const-string v6, "multiple UpdateThreads in DownloadService"

    invoke-direct {v4, v6}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v4

    .line 202
    :catchall_39
    move-exception v4

    monitor-exit v5
    :try_end_3b
    .catchall {:try_start_27 .. :try_end_3b} :catchall_39

    throw v4

    .line 191
    :cond_3c
    :try_start_3c
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    # getter for: Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->mPendingUpdate:Z
    invoke-static {v4}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->access$300(Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;)Z

    move-result v4

    if-nez v4, :cond_68

    .line 192
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    const/4 v6, 0x0

    iput-object v6, v4, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->mUpdateThread:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;

    .line 193
    if-nez v16, :cond_56

    .line 194
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    invoke-virtual {v4}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->stopSelf()V

    .line 196
    :cond_56
    const-wide v6, 0x7fffffffffffffffL

    cmp-long v4, v22, v6

    if-eqz v4, :cond_66

    .line 197
    move-object/from16 v0, p0

    move-wide/from16 v1, v22

    invoke-direct {v0, v1, v2}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->scheduleAlarm(J)V

    .line 199
    :cond_66
    monitor-exit v5

    return-void

    .line 201
    :cond_68
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    const/4 v6, 0x0

    # setter for: Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->mPendingUpdate:Z
    invoke-static {v4, v6}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->access$302(Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;Z)Z

    .line 202
    monitor-exit v5
    :try_end_71
    .catchall {:try_start_3c .. :try_end_71} :catchall_39

    .line 204
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    iget-object v4, v4, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->mSystemFacade:Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;

    invoke-interface {v4}, Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;->currentTimeMillis()J

    move-result-wide v20

    .line 205
    .local v20, "now":J
    const/16 v16, 0x0

    .line 206
    const-wide v22, 0x7fffffffffffffffL

    .line 207
    new-instance v14, Ljava/util/HashSet;

    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    .line 208
    # getter for: Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->mDownloads:Ljava/util/Map;
    invoke-static {v4}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->access$400(Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;)Ljava/util/Map;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v4

    invoke-direct {v14, v4}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V

    .line 210
    .local v14, "idsNoLongerInDatabase":Ljava/util/Set;, "Ljava/util/Set<Ljava/lang/Long;>;"
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    invoke-virtual {v4}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v4

    move-object/from16 v0, p0

    iget-object v5, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    .line 211
    invoke-virtual {v5}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->getApplicationContext()Landroid/content/Context;

    move-result-object v5

    invoke-static {v5}, Lcom/zuimeia/sdk/download/providers/downloads/Downloads;->getAllDownloadsContentURI(Landroid/content/Context;)Landroid/net/Uri;

    move-result-object v5

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    const/4 v9, 0x0

    .line 210
    invoke-virtual/range {v4 .. v9}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v10

    .line 213
    .local v10, "cursor":Landroid/database/Cursor;
    if-eqz v10, :cond_22

    .line 217
    :try_start_b1
    new-instance v17, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo$Reader;

    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    .line 218
    invoke-virtual {v4}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v4

    move-object/from16 v0, v17

    invoke-direct {v0, v4, v10}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo$Reader;-><init>(Landroid/content/ContentResolver;Landroid/database/Cursor;)V

    .line 219
    .local v17, "reader":Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo$Reader;
    const-string v4, "_id"

    invoke-interface {v10, v4}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v11

    .line 221
    .local v11, "idColumn":I
    invoke-interface {v10}, Landroid/database/Cursor;->moveToFirst()Z

    :goto_c9
    invoke-interface {v10}, Landroid/database/Cursor;->isAfterLast()Z

    move-result v4

    if-nez v4, :cond_132

    .line 223
    invoke-interface {v10, v11}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v12

    .line 224
    .local v12, "id":J
    invoke-static {v12, v13}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    invoke-interface {v14, v4}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    .line 225
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    # getter for: Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->mDownloads:Ljava/util/Map;
    invoke-static {v4}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->access$400(Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;)Ljava/util/Map;

    move-result-object v4

    invoke-static {v12, v13}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

    invoke-interface {v4, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v15

    check-cast v15, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;

    .line 226
    .local v15, "info":Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;
    if-eqz v15, :cond_118

    .line 227
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    move-object/from16 v0, v17

    move-wide/from16 v1, v20

    # invokes: Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->updateDownload(Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo$Reader;Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;J)V
    invoke-static {v4, v0, v15, v1, v2}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->access$500(Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo$Reader;Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;J)V

    .line 231
    :goto_f9
    invoke-virtual {v15}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->hasCompletionNotification()Z

    move-result v4

    if-eqz v4, :cond_101

    .line 232
    const/16 v16, 0x1

    .line 234
    :cond_101
    move-wide/from16 v0, v20

    invoke-virtual {v15, v0, v1}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->nextAction(J)J

    move-result-wide v18

    .line 235
    .local v18, "next":J
    const-wide/16 v4, 0x0

    cmp-long v4, v18, v4

    if-nez v4, :cond_125

    .line 236
    const/16 v16, 0x1

    .line 222
    :cond_10f
    :goto_10f
    invoke-interface {v10}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_112
    .catchall {:try_start_b1 .. :try_end_112} :catchall_113

    goto :goto_c9

    .line 242
    .end local v11    # "idColumn":I
    .end local v12    # "id":J
    .end local v15    # "info":Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;
    .end local v17    # "reader":Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo$Reader;
    .end local v18    # "next":J
    :catchall_113
    move-exception v4

    invoke-interface {v10}, Landroid/database/Cursor;->close()V

    throw v4

    .line 229
    .restart local v11    # "idColumn":I
    .restart local v12    # "id":J
    .restart local v15    # "info":Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;
    .restart local v17    # "reader":Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo$Reader;
    :cond_118
    :try_start_118
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    move-object/from16 v0, v17

    move-wide/from16 v1, v20

    # invokes: Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->insertDownload(Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo$Reader;J)Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;
    invoke-static {v4, v0, v1, v2}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->access$600(Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo$Reader;J)Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;
    :try_end_123
    .catchall {:try_start_118 .. :try_end_123} :catchall_113

    move-result-object v15

    goto :goto_f9

    .line 237
    .restart local v18    # "next":J
    :cond_125
    const-wide/16 v4, 0x0

    cmp-long v4, v18, v4

    if-lez v4, :cond_10f

    cmp-long v4, v18, v22

    if-gez v4, :cond_10f

    .line 238
    move-wide/from16 v22, v18

    goto :goto_10f

    .line 242
    .end local v12    # "id":J
    .end local v15    # "info":Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;
    .end local v18    # "next":J
    :cond_132
    invoke-interface {v10}, Landroid/database/Cursor;->close()V

    .line 245
    invoke-interface {v14}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :goto_139
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_151

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Ljava/lang/Long;

    .line 246
    .local v12, "id":Ljava/lang/Long;
    move-object/from16 v0, p0

    iget-object v5, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    invoke-virtual {v12}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    # invokes: Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->deleteDownload(J)V
    invoke-static {v5, v6, v7}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->access$700(Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;J)V

    goto :goto_139

    .line 252
    .end local v12    # "id":Ljava/lang/Long;
    :cond_151
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    # getter for: Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->mDownloads:Ljava/util/Map;
    invoke-static {v4}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->access$400(Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;)Ljava/util/Map;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :cond_161
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_173

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v15

    check-cast v15, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;

    .line 253
    .restart local v15    # "info":Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;
    iget-boolean v5, v15, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mDeleted:Z

    if-eqz v5, :cond_161

    .line 254
    const/16 v16, 0x1

    .line 260
    .end local v15    # "info":Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;
    :cond_173
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    # getter for: Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->mNotifier:Lcom/zuimeia/sdk/download/providers/downloads/DownloadNotification;
    invoke-static {v4}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->access$800(Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;)Lcom/zuimeia/sdk/download/providers/downloads/DownloadNotification;

    move-result-object v4

    move-object/from16 v0, p0

    iget-object v5, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    # getter for: Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->mDownloads:Ljava/util/Map;
    invoke-static {v5}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->access$400(Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;)Ljava/util/Map;

    move-result-object v5

    invoke-interface {v5}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadNotification;->updateNotification(Ljava/util/Collection;)V

    .line 265
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    # getter for: Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->mDownloads:Ljava/util/Map;
    invoke-static {v4}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->access$400(Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;)Ljava/util/Map;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v24

    :cond_19a
    :goto_19a
    invoke-interface/range {v24 .. v24}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_22

    invoke-interface/range {v24 .. v24}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v15

    check-cast v15, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;

    .line 266
    .restart local v15    # "info":Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;
    iget-boolean v4, v15, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mDeleted:Z

    if-eqz v4, :cond_19a

    .line 267
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    invoke-virtual {v4}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->getApplicationContext()Landroid/content/Context;

    move-result-object v4

    move-object/from16 v0, p0

    iget-object v5, v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService$UpdateThread;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;

    invoke-virtual {v5}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadService;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v5

    iget-wide v6, v15, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mId:J

    iget-object v8, v15, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mFileName:Ljava/lang/String;

    iget-object v9, v15, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mMimeType:Ljava/lang/String;

    invoke-static/range {v4 .. v9}, Lcom/zuimeia/sdk/download/providers/downloads/Helpers;->deleteFile(Landroid/content/Context;Landroid/content/ContentResolver;JLjava/lang/String;Ljava/lang/String;)V

    goto :goto_19a
.end method
